#include "cxx-glibc-wrap.h"

const char* direntryType2Str(int type)
{
    switch (type) {
    case DT_BLK:
        return "block device";
    case DT_CHR:
        return "character device";
    case DT_DIR:
        return "directory";
    case DT_FIFO:
        return "named pipe";
    case DT_LNK:
        return "symbolic link";
    case DT_REG:
        return "regular";
    }
    return "unknown";
}
